package com.example.quartz.task;

import com.example.quartz.openfeign.OrderBillFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 高垚淼
 * @version 1.0
 */

//每天清除order中的超时订单
@Component("ClearInvalidOrder")
public class ClearInvalidOrder {
    @Autowired
    OrderBillFeignClient orderBillFeignClient;

    public void clearInvalidOrder(){
        orderBillFeignClient.clearInvalidOrder();
    }
}
